import request from '@/utils/request'

//查看巡检任务列表
export function inspectionData(page,data) {
    return request({
        url: `/routing_inspection/?page=${page.pageNum}&size=${page.pageSize}&start_time=${data.startTime}&end_time=${data.endTime}&show_recall=${data.show}&type=${data.type}`,
        method: 'get',
    })
}

//查看巡检任务列表
export function inspectionDataDetail(id) {
    return request({
        url: `/routing_inspection/${id}/`,
        method: 'get',
    })
}